package com.monitor.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 采购订单物料表
 * </p>
 *
 * @author LX
 * @since 2018-09-09
 */
@TableName("erp_clients_materiel")
public class ErpClientsMateriel extends Model<ErpClientsMateriel> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 采购订单ID
     */
    @TableField("clients_id")
    private Integer clientsId;
    /**
     * 物料 名称
     */
    @TableField("materiel_name")
    private String materielName;
    /**
     * 物料 品牌
     */
    @TableField("materiel_brand")
    private String materielBrand;
    /**
     * 物料 规格
     */
    @TableField("materiel_Specifications")
    private String materielSpecifications;
    /**
     * 物料 型号
     */
    @TableField("materiel_model")
    private String materielModel;
    /**
     * 物料 产地
     */
    @TableField("materiel_place")
    private String materielPlace;
    /**
     * 物料 状态
     */
    @TableField("materiel_state")
    private String materielState;
    /**
     * 物料 单位
     */
    @TableField("materiel_unit")
    private String materielUnit;
    /**
     * 采购数量
     */
    @TableField("materiel_amount")
    private Integer materielAmount;
    /**
     * 客户出库数量
     */
    @TableField("out_amount")
    private Integer outAmount;
    /**
     * 单价
     */
    @TableField("materiel_price")
    private Double materielPrice;
    /**
     * 总价
     */
    @TableField("materiel_total")
    private Double materielTotal;
    /**
     * 发票类型
     */
    @TableField("invoice_type")
    private String invoiceType;
    /**
     * 优惠
     */
    @TableField("materiel_discount")
    private Double materielDiscount;

    /**
     *需求数量
     */
    private  transient  Integer xuNum;
    /**
     *需求数量
     */
    private  transient  Integer jingNum;

    public Integer getJingNum() {
        return jingNum;
    }

    public void setJingNum(Integer jingNum) {
        this.jingNum = jingNum;
    }

    public Integer getXuNum() {
        return xuNum;
    }

    public void setXuNum(Integer xuNum) {
        this.xuNum = xuNum;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getClientsId() {
        return clientsId;
    }

    public void setClientsId(Integer clientsId) {
        this.clientsId = clientsId;
    }

    public String getMaterielName() {
        return materielName;
    }

    public void setMaterielName(String materielName) {
        this.materielName = materielName;
    }

    public String getMaterielBrand() {
        return materielBrand;
    }

    public void setMaterielBrand(String materielBrand) {
        this.materielBrand = materielBrand;
    }

    public String getMaterielSpecifications() {
        return materielSpecifications;
    }

    public void setMaterielSpecifications(String materielSpecifications) {
        this.materielSpecifications = materielSpecifications;
    }

    public String getMaterielModel() {
        return materielModel;
    }

    public void setMaterielModel(String materielModel) {
        this.materielModel = materielModel;
    }

    public String getMaterielPlace() {
        return materielPlace;
    }

    public void setMaterielPlace(String materielPlace) {
        this.materielPlace = materielPlace;
    }

    public String getMaterielState() {
        return materielState;
    }

    public void setMaterielState(String materielState) {
        this.materielState = materielState;
    }

    public String getMaterielUnit() {
        return materielUnit;
    }

    public void setMaterielUnit(String materielUnit) {
        this.materielUnit = materielUnit;
    }

    public Integer getMaterielAmount() {
        return materielAmount;
    }

    public void setMaterielAmount(Integer materielAmount) {
        this.materielAmount = materielAmount;
    }

    public Integer getOutAmount() {
        return outAmount;
    }

    public void setOutAmount(Integer outAmount) {
        this.outAmount = outAmount;
    }

    public Double getMaterielPrice() {
        return materielPrice;
    }

    public void setMaterielPrice(Double materielPrice) {
        this.materielPrice = materielPrice;
    }

    public Double getMaterielTotal() {
        return materielTotal;
    }

    public void setMaterielTotal(Double materielTotal) {
        this.materielTotal = materielTotal;
    }

    public String getInvoiceType() {
        return invoiceType;
    }

    public void setInvoiceType(String invoiceType) {
        this.invoiceType = invoiceType;
    }

    public Double getMaterielDiscount() {
        return materielDiscount;
    }

    public void setMaterielDiscount(Double materielDiscount) {
        this.materielDiscount = materielDiscount;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpClientsMateriel{" +
        ", id=" + id +
        ", clientsId=" + clientsId +
        ", materielName=" + materielName +
        ", materielBrand=" + materielBrand +
        ", materielSpecifications=" + materielSpecifications +
        ", materielModel=" + materielModel +
        ", materielPlace=" + materielPlace +
        ", materielState=" + materielState +
        ", materielUnit=" + materielUnit +
        ", materielAmount=" + materielAmount +
        ", outAmount=" + outAmount +
        ", materielPrice=" + materielPrice +
        ", materielTotal=" + materielTotal +
        ", invoiceType=" + invoiceType +
        ", materielDiscount=" + materielDiscount +
        "}";
    }
}
